package top.eggcode.modules.log.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.eggcode.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/27 21:49
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
@Table(name = "log_exception")
@Entity
public class ExceptionLogEntity extends BaseEntity {

    @ApiModelProperty("异常的java类型")
    private String exceptionClass;

    @ApiModelProperty("消息")
    @Column(columnDefinition = "LONGTEXT")
    private String message;

    @ApiModelProperty("堆栈")
    @Column(columnDefinition = "LONGTEXT")
    private String stackTrace;

    @ApiModelProperty("发生位置")
    private String location;

    @ApiModelProperty("行号")
    private Integer lineNumber;

}
